﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserCentents/Centents.Master" AutoEventWireup="true" CodeBehind="AddRoom.aspx.cs" Inherits="School.UserCentents.AddRoom" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script>
        function Check() {
            if (document.getElementById("ContentPlaceHolder1_txtName").value == "") {
                alert('教室名称不能为空');
                return false;
            }
            return true;
        }
    </script>
    <div id="MainBody">
        <!-- 右侧开始 -->
        <div class="mainHeader">
            <div class="itopic">
                <img src="../images/body_side_icon_qzadd.gif">添加教室</div>
            <div class="clear">
            </div>
        </div>
        <div class="mainBodyShow">
            <table id="myAddUserGroup" cellpadding="5" cellspacing="0">
                <tbody>
                    <tr id="xuexiao" runat="server" visible="false">
                        <td class="tdLeft">
                            隶属于学校:
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownList1" runat="server" Height="20px" Width="168px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdLeft">
                            教室名称:
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtName" CssClass="input" Width="250px" MaxLength="40"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdLeft">
                        </td>
                        <td>
                            <asp:Button ID="Button1" runat="server" Text=" 提交 " OnClick="Button1_Click" OnClientClick="return Check()" />
                        </td>
                    </tr>
                </tbody>
            </table>
            <br>
        </div>
    </div>
</asp:Content>
